#ifndef MYCOIN_H
#define MYCOIN_H

#include <QPushButton>
#include <QTimer>
#include <QMouseEvent>
class MyCoin : public QPushButton
{
    Q_OBJECT
public:
    //explicit MyCoin(QWidget *parent = nullptr);
    //参数传入的路径是哪种颜色金币
    MyCoin(QString btnImg);
    //金币的属性
    int posX;
    int posY;
    bool flag;
    //改变标志方法
    void changeFlag();
    QTimer *timer1;//1->0
    QTimer *timer2;//0->1
    int min=1;
    int max=8;
    //执行动画标志
    bool isAnimation=false;

    //重写按下
    void mousePressEvent(QMouseEvent *e);
    //是否胜利
    bool isWin=false;

signals:

public slots:
};

#endif // MYCOIN_H
